import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';

/**
 * business模块-产品-A-列表
 */
@Entity('business_product_a_list')
export class BusinessProductAListEntity extends BaseEntity {
  @Index()
  @Column({ comment: '名称', length: 50 })
  name: string;

  @Index({ unique: true })
  @Column({ comment: '编号', length: 50 })
  code: string;

  @Column({ comment: '分类ID' })
  categoryId: number;

  @Column({ comment: '备注', nullable: true })
  description: string;

  @Column({ comment: '尺寸', nullable: true })
  size: string;

  @Column({ comment: '年代', nullable: true })
  age: string;

  @Column({ comment: '面值', nullable: true })
  par: string;

  @Column({ comment: '级别', nullable: true })
  level: string;

  @Column({ comment: '分数', nullable: true })
  score: string;

  @Column({ comment: '状态 0-禁用 1-启用', default: 1 })
  status: number;

  @Column({ comment: '打印状态 0-未打印 1-已打印', default: 0 })
  printStatus: number;

  @Column({ comment: '版别', nullable: true })
  edition: string;

  @Column({ comment: '铸造', nullable: true })
  casting: string;

  @Column({ comment: '边道', nullable: true })
  edge: string;

  @Column({ comment: '字口', nullable: true })
  font: string;

  @Column({ comment: '地章穿口', nullable: true })
  perforation: string;

  @Column({ comment: '批次ID' })
  batchId: number;

  @Column({ comment: '用户ID' })
  userId: number;

  @Column({ comment: '图库ID', nullable: true })
  galleryId: number;
}
